package top.abilities.util.domain;

import java.time.LocalDate;
import java.util.List;

/**
 * 一些声明信息
 * Description: <br/>
 * date: 2020-11-11 16:06<br/>
 *
 * @author hu.qing.song<br />
 * @since JDK 1.8
 */

public class WeekData {

    /**
     * 一周的开始时间
     */
    private LocalDate start;
    /**
     * 一周的结束时间
     */
    private LocalDate end;

    public WeekData(List<LocalDate> localDates) {
        this.start = localDates.get(0);
        this.end = localDates.get(localDates.size()-1);
    }

    public WeekData() {
    }

    public LocalDate getStart() {
        return start;
    }

    public void setStart(LocalDate start) {
        this.start = start;
    }

    public LocalDate getEnd() {
        return end;
    }

    public void setEnd(LocalDate end) {
        this.end = end;
    }
}
